#pragma once
#ifndef DRAW_NODE_H
#define  DRAW_NODE_H

#include "cocos2d.h"
#include <vector>
#include "BrickScene.h"

USING_NS_CC;

class DrawNumberAction : public Node
{
public:
	enum
	{
		tag_brick = 4,
	};

	DrawNumberAction(std::vector<Vec2> & vct, bool first, float coeff, float pts, int tagval, BrickSceneBase * pay) : m_pos(vct), isfirst(first)
		, coefficient(coeff), ts(pts), nodetag(tagval), player(pay)
	{}

	~DrawNumberAction();

	void DrawActionMove();

	void DrawBrick(float dt);

	void CreateBrick(const cocos2d::Vec2 & pos);

	void CancelDraw(cocos2d::Object* pSender);

private:
	std::vector<Vec2> & m_pos;
	bool isfirst;
	float coefficient;
	float ts;
	int nodetag;
	BrickSceneBase * player;
};

#endif  //DRAW_NODE_H